package com.tkjt.pms.modules.performances.constant;

import com.tkjt.pms.common.utils.TkIndexUtils;

import java.util.ArrayList;
import java.util.List;

public class IndexCommonRepositories {

	public final static List<String> getMirrorCodes(String indexYear) {
		List<String> mirrorCodes = new ArrayList<String>();
		// TEMP
		for (int index = 1; index <= 12; index++) {
			mirrorCodes.add(TkIndexUtils.getMirrorCode(indexYear, index));
		}
		return mirrorCodes;
	}

    public final static String getIndexExecutor(String indexValueCode) {
        if (indexValueCode.equals("KCIAAB017VA001") || indexValueCode.equals("KGIAAB017VA001")) {
            // IAAB017 = 重点工作完成
            return "ykgm";
        } else if (indexValueCode.equals("KCIAAC005VB001") || indexValueCode.equals("KGIAAC005VB001")) {
            // IAAC005 = 质量改进情况
            return "kpiadmin";
        } else {
            return "system";
        }
    }


}
